package com.ruiyian.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruiyian.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2022/6/20
 * Desc: 文件档案
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Document  extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long parentId ;

    private Integer type;

    private String name;

    private String url;

    private String suffix;

    private String createBy;

    private String delFlag;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**更新人*/
    private String updateBy;

    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
